<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="common/form :: head"></head>
	
	<body class="mainbody">
		<form method="POST" th:object="${obj}" enctype="multipart/form-data">
			<div th:replace="common/form :: location('资源数量',*{id} gt 0 ?'修改资源信息':'新增资源')"></div>
			<div id="floatHead" class="content-tab-wrap">
			  <div class="content-tab">
			    <div class="content-tab-ul-wrap">
			      <ul>
			        <li><a href="javascript:;">资源信息</a></li>
			      </ul>
			    </div>
			  </div>
			</div>
			<div class="tab-content">
			
				<dl th:if="*{id}==0">
					<dt>资源名称</dt>
				    <dd>
				      <input type="text" th:field="*{name}" class="input normal" data-type="*2-100" data-ajaxurl="checkName" />
				      <span class="Validform_checktip">*请填写资源名称</span>
				    </dd>
				</dl>
		
				<!-- <dl>
					<dt>资源类型</dt>
				    <dd>
				      <input type="text" th:field="*{type}" class="input normal" data-type="*2-100" />
				      <span class="Validform_checktip">*请填写资源类型</span>
				    </dd>
				</dl>
				 -->
				<dl>
					<dt>资源类型</dt>
					<dd>
				    <label style="width: 80px;"> 
        				<input th:field="*{type}" type="radio" name="mode" value="设备"/>&nbsp;&nbsp;设备
    				</label>
    				
    				<label style="width: 80px;"> 
        				<input th:field="*{type}" type="radio" name="mode" value="会议室"/>&nbsp;&nbsp;会议室
    				</label>
    				</dd>
				</dl>
				
				
				
				
				
				
				<dl>
					<dt>资源数量</dt>
				    <dd>
				      <input type="text" th:field="*{number}" data-type="*1-10" class="input normal" />
				      <span class="Validform_checktip">*请填写资源数量</span>
				    </dd>
				</dl>
				
			</div>
			<div th:replace="common/form :: footer"></div>
		</form>

		<script type="text/javascript" th:replace="common/form :: formscript">
		</script>
	</body>
</html>